package routers

import (
	"cangku/controllers"
	beego "github.com/beego/beego/v2/server/web"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	beego.Router("/user/register", &controllers.UserController{}, "POST:Register")
	beego.Router("/user/login", &controllers.UserController{}, "POST:Login")
	beego.Router("/xshuo/add", &controllers.XshuoController{}, "POST:Add")
	beego.Router("/xshuo/upload", &controllers.XshuoController{}, "POST:Upload")
	beego.Router("/xshuo/list", &controllers.XshuoController{}, "GET:List")
	beego.Router("/xshuo/del", &controllers.XshuoController{}, "POST:Del")
}
